import React from 'react';
import './index.css';

class RbTools extends React.Component {
    render(){
        const { isShow, siteStyle, locationStyle, loadSite, loadlocation } = this.props;
        return (
            <div className={isShow ? 'tool-control move' : 'tool-control unmove'}>
                <div className={siteStyle ? 'site active' : 'site'} onClick={() => loadSite()}></div>
                <div className={locationStyle ? 'location active' : 'location'} onClick={() => loadlocation()}></div>
            </div>
        )
    }
}

export default RbTools;

